<script type="text/javascript">
//<![CDATA[
    
    var sfs = Object();
    
    sfs.config = <?php echo $config ?>;
    
    
    /**
     * timeline configuration
     */
    sfs.sendDefaultConfig = function()
    {
      return sfs.config;
    }
    
    /**
     * get flex object
     */
    sfs.getMovie = function()
    {
        var obj = Object();
        if (navigator.appName.indexOf("Microsoft") != -1) {
          obj = window['ExternalInterfaceSchedulingContent'];
        }else{
          obj =  document['ExternalInterfaceSchedulingContent'];
    
        }
        return obj;
        
    }
    
    sfs.getSelectedEntry = function()
    {

	      var obj = sfs.getMovie();
	      
	      return obj.getSelectedEntry();

    }
    sfs.rebuild = function()
    {
      
      sfs.getMovie().rebuild();
    }
    
//]]>
</script>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
	id="ExternalInterfaceSchedulingContent" width="<?php echo $width; ?>"
	height="<?php echo $height; ?>"
	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
	<param name="movie" value="<?php echo $filepath ?>" />
	<param name="quality" value="high" />
	<param name="bgcolor" value="<?php echo $bgcolor; ?>" />
	<param name="allowScriptAccess" value="sameDomain" />
	<embed src="<?php echo $filepath ?>" quality="high"
		bgcolor="<?php echo $bgcolor; ?>" width="<?php echo $width; ?>"
		height="<?php echo $height; ?>"
		name="ExternalInterfaceSchedulingContent" align="middle" play="true"
		loop="false" quality="high" allowScriptAccess="sameDomain"
		type="application/x-shockwave-flash"
		pluginspage="http://www.macromedia.com/go/getflashplayer">
	</embed> </object>

